package com.qiyu.admin.system.service.impl;

import com.qiyu.admin.system.mapper.FunctionMapper;
import com.qiyu.admin.system.model.Function;
import com.qiyu.admin.system.service.FunctionService;
import com.qiyu.framework.base.BaseMapper;
import com.qiyu.framework.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 功能资源接口实现类
 *
 * @author zhangqing
 * @date 2017年04月07日
 */
@Service
public class FunctionServiceImpl extends BaseServiceImpl<Function> implements FunctionService {
    @Resource
    private FunctionMapper functionMapper;
    @Override
    public BaseMapper getMapper() {
        return functionMapper;
    }

    @Override
    public List<Map<String, String>> getFunctionZtreeData() throws Exception {
        return functionMapper.selectFunctionZtreeData();
    }
}
